package org.lyg.service;

import com.github.pagehelper.PageInfo;

import org.lyg.domain.Blog;
import org.lyg.domain.BlogCondition;


public interface IBlogService {
    PageInfo<Blog> list(int size, int page, BlogCondition condition);

    Blog getBlogById(int id);

    PageInfo<Blog> getBlogListByUserId(int id,int page,int size);
    
    int getCountByUserId(int id);

    boolean update(Blog blog);

    boolean save(Blog blog);

    void del(int id);
}
